/***********************************************************************
	filename: 	DaterRecLogin.h
	created:	6/5/2012
	author:		4Ys
	
	purpose:	Defines classes to recover orders from server to client,
				specifically for Login.	            
*************************************************************************/
#ifndef _DaterRecLogin_h_
#define _DaterRecLogin_h_

#include "DaterRecover.h"
#include "DaterUser.h"

namespace Dater
{
	class RecLogin : public Recover
	{
	public:
		/*!
		 \brief
			 Construct class RecLogin with a param.

		 \param splitedVector
		     - a vector of string of orders from server to client to describe the order of event.
		*/
		RecLogin(std::string recvMessage): Recover(recvMessage), _eventidCounter(1) {}
		
		/*!
		 \brief
			 A pure virtual function generates from class Recover, specifically for login.

		 \return
			 a string of order, especially for login.
		*/
		User* execute();

		int getEventidCounter(){return _eventidCounter;}
	private:
		int _eventidCounter;
	};
}
#endif